package com.xuyiwei.xblog.business.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.xuyiwei.xblog.business.system.model.Notice;
import com.xuyiwei.xblog.business.system.result.notice.out.NoticeDto;
import com.xuyiwei.xblog.business.system.result.user.out.UserDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通知表 Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    /**
     * 获取通知列表
     */
    List<Notice> list(@Param("condition") String condition);

    /**
     * 清空所有通知
     */
    void deleteAllNotice();

    /**
     * 获取通知列表
     */
    List<NoticeDto> findPageByCondition(@Param("page") Page<NoticeDto> page,  @Param("vo") String condition,
                                        @Param("orderByField") String orderByField,@Param("isAsc") boolean isAsc);
}